<template>
  <div>

<ul>
    <template v-if="$store.state.user.profile.token">
      <li><a href="javascript:;"><i class="iconfont icon-user"></i>{{$store.state.user.profile.nickname}}</a></li>
      <li @click="rou"><a  >退出登录</a></li>
    </template>
    <template v-else>

  </div>
</template>

<script>
import router from '@/router'

export default {
  setup () {
    const rou = () => {
      console.log('ss')
      router.push('/login')
    }
    return {
      rou
    }
  }

}
</script>

<style>

</style>
